<p class="breadcrumbs"><strong>You are here:</strong> &raquo; <a href="<?php echo $gene_uri ?>"><?php _e($gene_name) ?></a> &raquo; Verify your Password</p>

<?php if ($pagetitle): ?>
	<h2><?php _e($pagetitle) ?></h2>
<?php else: ?>
	<h2>Verify your Password</h2>
<?php endif; ?>

<?php if ($success): ?>
	<p>Your password has been successfully confirmed!</p>
	
	<form action="<?php echo $returnurl ?>" method="post">
		<?php foreach ($returnvars as $i => $j): ?>
			<input type="hidden" name="<?php _e($i) ?>" value="<?php _e($j) ?>" />
		<?php endforeach; ?>
		
		<input type="submit" value="Continue..." />
	</form>
<?php else: ?>
	<?php if ($errormsg): ?>
		<p class="errormessage"><?php _e($errormsg) ?></p>
	<?php endif; ?>
	
	<p>To protect your account, you need to confirm your password periodically.</p>
	
	<form method="post" action="<?php echo Gene::makeLink(Gene::specialId('Retype')) ?>">
	<?php if ($_POST['r']): ?>
		<input type="hidden" name="r" value="<?php _e($_POST['r']) ?>" />
	<?php else: ?>
		<input type="hidden" name="r" value="<?php echo $returnurl ?>" />
	<?php endif; ?>
	
	<?php if ($_SERVER['REQUEST_METHOD'] == 'POST'): ?>
		<?php if ($_POST['ret']): ?>
			<?php foreach ($_POST['ret'] as $i => $j): ?>
				<input type="hidden" name="ret[<?php _e($i) ?>]" value="<?php _e($j) ?>" />
			<?php endforeach; ?>
		<?php else: ?>
			<?php foreach ($_POST as $i => $j): ?>
				<input type="hidden" name="ret[<?php _e($i) ?>]" value="<?php _e($j) ?>" />
			<?php endforeach; ?>
		<?php endif; ?>
	<?php endif; ?>
	
	<p class="fieldlabel"><label for="loginname">Login Name:</label></p>
	<p class="field"><strong><?php _e($member['name']) ?></strong> (<a href="<?php echo addArguments(Gene::makeLink(Gene::specialId('Logout')), array('r' => Gene::specialId('Login'))) ?>">Not <?php _e($member['name']) ?>?</a>)</p>
	
	<p class="fieldlabel"><label for="loginpassword">Password:</label></p>
	<p class="field"><input type="password" class="required" name="retypepassword" id="password" /> <a href="<?php echo Gene::makeLink(Gene::specialId('Password')) ?>">Forgotten your password?</a></p>
	
	<p class="formcontrols"><input type="submit" value="Continue" class="btn_focus" /></p>
	
	</form>
<?php endif; ?>